package com.xxl.job.core.commons.annotation;


import com.xxl.job.core.commons.annotation.impl.CheckListRepeatImpl;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author : xingsongtan@qq.com
 * @date : 15:26 2019/9/23
 */
@Constraint(validatedBy = CheckListRepeatImpl.class)
@Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE})
@Retention(RUNTIME)
public @interface CheckListRepeat {
    String message() default "校验list存在重复值！";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
